package hospital;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.Toast;

import com.example.test.R;
public class hospital_intro extends Activity {
	ArrayList<String> arlItem;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.hospital_intro);
        Log.d("msg","OnCreat1");
        //items.event_list.removeAll(items.event_list);
        
        Toast.makeText(hospital_intro.this,"병원소개입니다.",Toast.LENGTH_SHORT).show();

        //ImageView map = (ImageView) findViewById(R.id.map_img_test);
        /*
        arlItem =new ArrayList<String>();
        arlItem.add("성형외과");
        
        TabHost tabHost = (TabHost) this.findViewById(R.id.tabs);
        tabHost.setup();
        TabSpec tabSpec1 = tabHost.newTabSpec("Tab1").setIndicator("1층");
        tabSpec1.setContent(R.id.list_tab1);
        tabHost.addTab(tabSpec1);
        TabSpec tabSpec2 = tabHost.newTabSpec("Tab2").setIndicator("2층");
        tabSpec2.setContent(R.id.list_tab2);
        tabHost.addTab(tabSpec2);
        TabSpec tabSpec3 = tabHost.newTabSpec("Tab3").setIndicator("3층");
        tabSpec2.setContent(R.id.list_tab3);
        tabHost.addTab(tabSpec3);
        tabHost.setCurrentTab(0);  */
        
        

    }
    
	public boolean onKeyDown( int KeyCode, KeyEvent event ){
	 		if( event.getAction() == KeyEvent.ACTION_DOWN ){
	 			if( KeyCode == KeyEvent.KEYCODE_BACK ){
	 				Intent intent = new Intent(hospital_intro.this, hospital_main.class);
	 				startActivityForResult(intent, 0);
	 				finish();
	 				
	 				return false;
	 			}
	 		}
	 		return super.onKeyDown(KeyCode, event);
	 	}
}
